<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<script type="text/javascript">
	function inspectTemplateDefGridActions(rowObject) {
		return isperp.createGridAction({
			title : '编辑巡检项',
			iconCls : 'icon-config',
			onclick : "isperp.openDialog({title:'编辑巡检项',windowSize:'big',contentUrl:'task/inspectTemplate/treeEdit?id=" + rowObject.id + "'})"
		}) + isperp.createGridAction({
			title : '预览模板',
			iconCls : 'icon-preview',
			onclick : "isperp.openDialog({title:'预览模板',windowSize:'big',contentUrl:'task/inspectTemplate/preview?defId=" + rowObject.id + "'})"

		});
	}
</script>
<isperp:grid url="task/inspectTemplateDef/listDetail"
	gridId="inspectTemplateDefGrid" cusDialogSize="normal"
	actionsWidth="120"
	cusActions="inspectTemplateDefGridActions(rowObject);"
	ondbClickRowEvent="inspectTemplateDefGrid.edit(rowid);"
	cusEditUrl="task/inspectTemplateDef/edit"
	cusDeleteUrl="task/inspectTemplateDef/delete">

	<jsp:attribute name="toolbar">
	<isperp:toolbar id="inspectTemplateDefToolbar">
		<isperp:button id="inspectTemplateDefCreate" icon="icon-plus"
				text="新增巡检模板定义 " cssClass="nui-mainbtn"
				onclick="inspectTemplateDefGrid.create();"></isperp:button> 
			 			
	</isperp:toolbar>
	</jsp:attribute>

	<jsp:attribute name="searchbar">
	<table class="search-table">
		<tbody>
			<tr>
				<td class="td1">编号：</td>
				<td class="td2"><input type="text" field="code" op="cn">
					</td>
				<td class="td1">名称：</td>
				<td class="td2"><input type="text" field="name" op="cn">
					</td>
				 
			</tr>
			
		</tbody>
	</table>
	</jsp:attribute>
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column> 
	<isperp:column name="code" title="编号" width="100">
	</isperp:column> 
	<isperp:column name="name" title="名称" width="200">
	</isperp:column> 
	<isperp:column name="order_num" title="排列顺序" width="70">
	</isperp:column>
	
	</jsp:body>
</isperp:grid>
